<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
		<title>OA人脸识别员工管理系统</title>
		<link rel="stylesheet" href="../resource/layui/css/layui.css">
	</head>
	<body class="layui-layout-body">
		<div class="layui-layout layui-layout-admin">
			<div class="layui-layout layui-layout-admin">
				
				<div class="layui-body">
					<!-- 内容主体区域 -->
					<div class="layui-container">
						<div class="layui-row">
							<div class="layui-col-md7 layui-col-md-offset">
								<h2 style="padding: 15px;">部门添加</h2>
								<!-- 表单 -->
								<form class="layui-form" action="">
									
									<div class="layui-form-item">
										<label class="layui-form-label">部门编号</label>
										<div class="layui-input-inline">
											<input type="text" class="layui-input" name="deptid" placeholder="">
										</div>
									</div>
									
									<div class="layui-form-item">
										<label class="layui-form-label">部门名称</label>
										<div class="layui-input-inline">
											<input type="text" class="layui-input" name="deptname" placeholder="">
										</div>
									</div>
									
									<div class="layui-form-item">
										<label class="layui-form-label">部门经理ID</label>
										<div class="layui-input-inline">
											<input type="text" class="layui-input" name="boosid" placeholder="">
										</div>
									</div>

									<div class="layui-form-item">
										<div class="layui-input-block">
											<button class="layui-btn" lay-submit lay-filter="formDemo">立即添加</button>
											<button type="reset" class="layui-btn layui-btn-primary">重置</button>
										</div>
									</div>
									
								</form>
								<!-- 表单结束 -->
							</div>
						</div>
					</div>
				</div>
			</div>
			<script src="../resource/layui/layui.js"></script>
			<script>
				//JavaScript代码区域
				layui.use('element', function() {
					var element = layui.element;
				});
				//表单js部分
				//Demo
				layui.use('form', function() {
					var form = layui.form;
					//监听提交
					form.on('submit(formDemo)', function(data) {
						layer.msg(JSON.stringify(data.field));
						return false;
					});
				});
			</script>
	</body>
</html>
